package cn.yshujia.transform;

import cn.yshujia.domain.entity.Classify;
import cn.yshujia.domain.vo.ClassifyLabelVO;

/**
 * @author YShuJia
 * @create 2025/2/23
 * @description ClassifyTransform
 */

public class ClassifyTransform {
	
	public static ClassifyLabelVO vo2VO(Classify entity) {
		if (entity == null) {
			return null;
		}
		ClassifyLabelVO classifyLabelVO = new ClassifyLabelVO();
		classifyLabelVO.setId(entity.getId());
		classifyLabelVO.setName(entity.getName());
		classifyLabelVO.setPriority(entity.getPriority());
		classifyLabelVO.setType(entity.getType());
		classifyLabelVO.setIntroduction(entity.getIntroduction());
		return classifyLabelVO;
	}
}
